package com.cyt.work.question.model.po;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 问卷题目表
 *
 * @author concong tao
 * @since 2019-01-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "cyt_question_subject")
public class QuestionSubject implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private String applyId;

    /**
     * 问卷主键
     */
    private String questionId;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 状态(1:单选，2：多选，3：填空)
     */
    private String type;

    /**
     * 排序
     */
    private Integer orderNum;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 答案
     */
    @Transient
    private String answer;

    @Transient
    private List<QuestionSubjectSelect> selectList;
}
